<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 16-8-30
 * Time: 下午6:11
 */
namespace common\entities\common;

use Yii;
use common\entities\ConfigEntity;

/**
 * This is the model class for table "myscrm_organization_remind".
 *
 * @property string $remindId
 * @property string $CreatedOn
 * @property string $ModifiedOn
 * @property string $ModifiedBy
 * @property string $organizationId
 * @property string $userId
 * @property string $userName
 * @property string $contractId
 * @property integer $isStop
 * @property string $reason
 * @property string $isXq
 */
class MyscrmOrganizationRemindEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_organization_remind';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['remindId'], 'required'],
            [['CreatedOn', 'ModifiedOn'], 'safe'],
            [['isStop', 'isXq'], 'integer'],
            [['remindId', 'organizationId', 'userId', 'contractId', 'ModifiedBy'], 'string', 'max' => 36],
            [['reason', 'userName'], 'string', 'max' => 500]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'remindId' => '唯一ID',
            'CreatedOn' => '创建时间',
            'ModifiedOn' => '修改时间',
            'ModifiedBy' => '创建人',
            'organizationId' => '租户ID',
            'userId' => '用户ID',
            'userName' => '用户名称',
            'contractId' => '合同ID',
            'isStop' => '是否不再提醒，1是，0否',
            'reason' => '原因',
            'isXq' => '是否续签，1是，0否',
        ];
    }
}